
package FunctiiTrigo;

import Visitor.Visitor;
import Functii.*;

public class Ctg extends Functie {
    public static String concatTermens(String a){
	String aux;
	int nrP;
	nrP = a.charAt(0)=='(' ? 0:2;
	aux = "ctg";
	if(nrP != 0)
            aux += "(";
	aux += a;
	if(nrP != 0)
            aux += ")";
	return aux;
    }

    public void acceptVisitor(Visitor v){
		v.visit(this);
	}

    public String concatTermeni(String a){
        String aux;
	int nrP;
	nrP = a.charAt(0)=='(' ? 0:2;
	aux = "ctg";
	if(nrP != 0)
            aux += "(";
	aux += a;
	if(nrP != 0)
            aux += ")";
	return aux;
    }
}
